package com.ask.controller.test;

import com.ask.dto.Result;
import com.ask.service.utilService.OrderTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test/order")
public class OrderController {

    @Autowired
    private OrderTestService orderTestService;

    @PostMapping("/{id}/{userId}")
    public Result orderTest(@PathVariable Long id, @PathVariable Long userId) {

        return orderTestService.oneUseroneOrderTest_v2(id, userId);
    }
}
